﻿<controls:ChildWindow x:Class="VisitorsApp.Views.PhotoDetails"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                      xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      Width="Auto" Height="auto" 
                      xmlns:converter="clr-namespace:PhotoManagerApp.Helpers"
                      
                      Title="PhotoDetails">
    <controls:ChildWindow.Resources>
        <converter:ByteConverter x:Key="ByteConverter" />
    </controls:ChildWindow.Resources>

    <Grid x:Name="LayoutRoot" Margin="2">
        <Image x:Name="ImageHolder" Source="{Binding CurrentImage.ImageData, Converter={StaticResource ByteConverter}}"/>
    </Grid>
</controls:ChildWindow>